package com.ruoyi.system.service.construction.impl;

import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.SupplierInfoMapper;
import com.ruoyi.system.service.construction.WorkingSupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 施工队店铺管理Service实现层
 *
 */
@Service
public class WorkingSupplierServiceImpl implements WorkingSupplierService {

    @Autowired
    private SupplierInfoMapper supplierInfoMapper;

    @Autowired
    private SysUserMapper userMapper;


    /**
     * 查询施工队的店铺信息
     * @param supplierInfo
     * @return
     */
    public List<SupplierInfo> selectSupplierInfoByWorkingList(SupplierInfo supplierInfo,Long userId){
        supplierInfo.setCustomerId(userId);
        return supplierInfoMapper.selectSupplierInfoByWorkingList(supplierInfo);
    }
}
